<div class="space-80"></div>
<div class="col-sm-10 col-sm-offset-1">
    <div class="table-responsive">
        <table class="table table-bordered cart-table">
            <tbody>
                <tr ng-repeat="checkshop in checkshopData">
                    <td class="item-thumb">
                        <img src="{{checkshop.img}}" alt="" width="70">
                    </td>
                    <td class="item-name">
                        <h4><a href="#">{{checkshop.name}}</a></h4>
                    </td>
                    <td class="item-price">
                        <h4>￥{{checkshop.price}}</h4>
                    </td>
                    <td class="item-count">
                        <div class="count-input">
                            <a class="incr-btn mousehand" data-action="decrease" ng-click="reduce($index)">–</a>
                            <input class="quantity" type="text" value="{{checkshop.number}}">
                            <a class="incr-btn mousehand" data-action="increase" ng-click="add($index)">+</a>
                        </div>
                    </td>
                    <td class="item-remove">
                        <a ng-click="removeShop($index)"><i class="ion-trash-b"></i></a>
                    </td>
                </tr>
            </tbody>
        </table>                  
    </div><!--end cart table-->
    <div class="row">
        <div class="col-md-12 margin-b-30">
            <div class="cart-totals margin-b-20">
                <!-- <div class="cart-totals-title">
                    <h3>结算</h3>
                </div> -->
                <div class="cart-totals-fields">
                    <table class="table">
                        <tr>
                            <td>备注：</td>
                            <td>
                                <input id="foodremark" name="" type="text" placeholder="请输入" class="form-control">
                            </td>
                        </tr>
                        <tr>
                            <td class="text-color"><strong>总额</strong></td>
                            <td class="text-color"><h3>￥<span ng-bind="allSum()"></span></h3></td>
                        </tr>
                    </table>
                </div>
            </div><!--end cart totals-->
            <div class="cart-buttons text-center">
                 <!-- <a href="#" class="btn btn-dark btn-lg">Update Cart</a>
                 <a href="#" class="btn btn-primary btn-lg">Checkout</a> -->
              <a class="btn btn-primary btn-lg text-color" style="letter-spacing: 5px;" ng-click="foodCheckout()">结算</a>
            </div>
            <div class="row text-center" ng-hide="food_check">
              <hr>
              <div class="col-sm-4">
                <!-- <a class="btn btn-primary btn-lg text-color" style="letter-spacing: 5px;" ng-click="cashPayment()">现金</a> -->
                <a class="btn btn-primary btn-lg text-color" style="letter-spacing: 5px;" data-toggle="modal" data-target="#cashCheckout">现金</a>
                <!-- 找零页面 -->
                <div class="modal fade" id="cashCheckout" tabindex="-1" role="dialog" aria-labelledby="myMenuLabel" aria-hidden="true">
                    <div class="modal-dialog" role="document">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                <h3 class="modal-title" id="myFormLabel">结算</h3>
                            </div>
                            <div class="modal-body">
                                <div class="row">
                                    <div class="col-sm-8 col-sm-offset-2 text-left member-body">
                                        <div class="row">
                                            <label>实收：</label>
                                            <div class="input-group ">
                                                <input type="text" class="form-control" placeholder="" ng-model="getMoney"/>
                                                <div class="input-group-addon">
                                                    <span class="glyphicon glyphicon-usd"></span>
                                                </div>
                                            </div>   
                                        </div>
                                        <div class="row">
                                            <label>应收：</label>
                                            <div class="input-group ">
                                                <h3><span>{{allSum() | currency:'￥'}}</span></h3>
                                            </div>   
                                        </div>
                                        <div class="row">
                                            <label>找零：</label>
                                            <div class="input-group ">
                                                <h3><span>{{getChange() | currency:'￥'}}</span></h3>
                                            </div>   
                                        </div>
                                        <div class="row text-center">
                                            <input type="submit" value="确定" class="btn btn-primary btn-lg" style="width: 100%;" ng-click="cashPayment()">
                                        </div>
                                    </div>
                                </div>
                          </div>
                      </div>
                    </div>
                </div>
              </div>
              <div class="col-sm-4">
                <a class="btn btn-primary btn-lg text-color" style="letter-spacing: 5px;" ng-click="wechatPayment()">微信</a>
              </div>
              <div class="col-sm-4">
                <a class="btn btn-primary btn-lg text-color" style="letter-spacing: 5px;" ng-click="alipayPayment()">支付宝</a>
              </div>
            </div>
        </div>
    </div>
</div>